<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{$msg}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="{__STATIC_WANG__}layui/css/layui.css" media="all">
  <link rel="stylesheet" href="{__STATIC_WANG__}style/admin.css" media="all">
</head>
<body>


<div class="layui-fluid">
  <div class="layadmin-tips">
    <i class="layui-icon layui-icon-face-surprised" style="font-size: 80px;">&#xe664;</i>

    <div style="font-size: 20px;">
      <dt style="color: red"><?php echo(strip_tags($msg));?></dt>
      <br>
      <dt>
        页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b>
      </dt></dl>
    </div>

  </div>
</div>


  <script src="{__STATIC_WANG__}layui/layui.js"></script>
  <script>
  layui.config({
    base: '{__STATIC_WANG__}' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', ]);
  layui.use(['jquery', 'layer'], function () {

    var layer = layui.layer,
            form = layui.form,
            element = layui.element,
            laydate = layui.laydate,
            upload = layui.upload,
            tree = layui.tree,
            table = layui.table,
            admin=layui.admin;
    (function () {
      var wait = document.getElementById('wait'),
              href = document.getElementById('href').href;
      var interval = setInterval(function () {
        var time = --wait.innerHTML;
        if (time <= 0) {
          var index1 = parent.layer.getFrameIndex(window.name);
          if(index1 != undefined){
              parent.layer.close(index1);
          }else {
            top.layui.admin.closeThisTabs();

          }

          // window.location.href = href;
          clearInterval(interval);
        }
        ;
      }, 1000);
    })();

  });

  </script>
</body>
</html>